package spzx.product;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.Import;
import spzx.cache.SpringCacheConfig;
import spzx.exception.GlobalExceptionHandler;
import spzx.knife4j.Knife4jConfig;

@EnableCaching //开启spring cache, 缓存注解
@Import(value = {Knife4jConfig.class , GlobalExceptionHandler.class, SpringCacheConfig.class})
@SpringBootApplication
public class ProductApplication {
    public static void main(String[] args) {
        // Spring Boot 启动入口
        SpringApplication.run(ProductApplication.class, args);
    }
}
